package models

import (
	"github.com/zeromicro/go-zero/core/stores/cache"
	"github.com/zeromicro/go-zero/core/stores/sqlx"
)

var _ MessageStatusModel = (*customMessageStatusModel)(nil)

type (
	// MessageStatusModel is an interface to be customized, add more methods here,
	// and implement the added methods in customMessageStatusModel.
	MessageStatusModel interface {
		messageStatusModel
	}

	customMessageStatusModel struct {
		*defaultMessageStatusModel
	}
)

// NewMessageStatusModel returns a model for the database table.
func NewMessageStatusModel(conn sqlx.SqlConn, c cache.CacheConf, opts ...cache.Option) MessageStatusModel {
	return &customMessageStatusModel{
		defaultMessageStatusModel: newMessageStatusModel(conn, c, opts...),
	}
}
